using System;
using System.Collections.Generic;
using System.Text;

namespace MspEmulator
{
    class updateSVoltage : ISend, IUpdateDevice
    {
        private ushort sVoltage;

        public updateSVoltage(ushort value)
        {
            sVoltage = value;
        }


        #region ISend Members

        public void  Send()
        {
 	        Serial.Send(Utility.buildPack(Utility.collectData((byte)Utility.functCode.scanVoltage)));
        }

        #endregion



        #region IUpdateDevice Members

        public void  updateDevice()
        {
 	        Device.sVoltage = sVoltage;
        }

        #endregion
}
}
